#include <iostream>
#include <iomanip>
#include <unistd.h>
#include "timemeasure.h"

using namespace std;

int main(int argc, char **argv)
{
	cerr << "compiled with TIME_PROFILE\ninitializing...";
	if(TM_INIT() !=0) { cerr << "error\n"; return 1; }
	cerr << "cpu frequency: "<< tm_cpu_freq / 1.0e6 << " MHz\n\n";

	TM_START();
    usleep(1e6);
	TM_STOP();
	cerr << "time =" << setprecision(4) << setw(9) << tm_secs << endl;
}
